package service.impl;/*
 *徐韬
 *2021/10/9
 *12:43
 */

import Dao.CategoryDao;
import Dao.impl.CategoryDaoimpl;
import Util.DruidUtil;
import entity.Category;
import service.CategoryService;

import java.util.List;

public class CategoryServiceimpl implements CategoryService {
    CategoryDao categoryDao = new CategoryDaoimpl();
    @Override
    public List<Category> showAll() {
        List<Category> categoryList = null;
        categoryList = categoryDao.selectAll();
        DruidUtil.close();
        return categoryList;
    }
}
